package com.jtcl.enums;

/**
 * @author sjt
 * @since 2021-03-02 18:16
 */
public enum OrderEvent {

    FOUND,                    //创建订单
    SAOMA,                    //提交订单
    PAY,                    //付款
    USING_REFUNDING,
    COM_REFUNDING;

    public static OrderEvent getEvent(String event) {
        for (OrderEvent orderEvent : OrderEvent.values()) {
            if (orderEvent.name().equals(event)) {
                return orderEvent;
            }
        }
        return null;
    }

}


